01 - Press Key
Overview
The Grape Board comes with 2 programmable buttons A and B, and another reset button which is used to restart the Grape Board, often used to re-execute existing internal programs
Application method
Block Introduction
| Programming block | Function Introduction |
| | - The button returns 1 when pressed, otherwise returns 0 (When the button is pressed, the voltage level changes to a low level) |
Example 1 - Buttoned flashligh
Effect: Use button A to turn the colored light on or off
Programming